package com.bajiao.service.store;

import com.bajiao.dto.store.StoreApplyRequest;
import com.bajiao.dto.store.StoreApplyStep1Request;
import com.bajiao.entity.store.StoreApply;
import com.bajiao.vo.store.StoreApplyAdmin;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 店铺申请表
 * @Author: FanJq
 * @Date:   2024-12-24
 * @Version: V1.0
 */
public interface StoreApplyService extends IService<StoreApply> {

    /**
     * @Description
     * 提交入驻
     * @date 2024/12/24 16:34
     * @author FanJq
     * @param request
     * @return
    */
    void apply(String userId, StoreApplyRequest request);

    /**
     * @Description
     * 根据用户id获取
     * @date 2024/12/24 16:38
     * @author FanJq
     * @param userId
     * @return {@link StoreApply}
    */
    StoreApply getByUserId(String userId);

    /**
     * @Description
     * 根据商户id获取
     * @date 2024/12/28 11:37
     * @author FanJq
     * @param storeId
     * @return {@link StoreApply}
    */
    StoreApply getByStoreId(String storeId);

    /**
     * @Description
     * 管理后台列表
     * @date 2025/1/6 16:34
     * @author FanJq
     * @param
     * @return {@link List< StoreApplyAdmin>}
    */
    List<StoreApplyAdmin> getAdminList(String title, String storeMobile, String legalPerson, String mobile, Integer status);
}
